﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kevin.Shop.Business.Comments.Components;
using Kevin.Shop.Business.Service.Entity.Products.Enumerations;

namespace RiderShop.Mobile.ServiceEntity.Product
{
    public class ProductReviewInfoExtend : ProductReviewInfo
    {
        public string MemoForamt
        {
            get { return Memo == null ? string.Empty : Memo; }
           
        }

        public string FaultsTextForamt
        {
            get { return FaultsText == null ? string.Empty : FaultsText; }
        }

        public string RatingForamt
        {
            get
            {
                switch ((ProductReviewType)Rating)
                {
                    case ProductReviewType.TotalBest:
                        return "很好";
                    break;
                    case ProductReviewType.TotalGood:
                        return "比较好";
                    break;
                    case ProductReviewType.TotalNormal:
                         return "一般";
                    break;
                    case ProductReviewType.TotalBad:
                        return "比较差";
                    break;
                    case ProductReviewType.TotalWorst:
                        return "非常差";
                    break;
                    default: 
                        return "很好";
                    break;
                }
            }
        }
    }
}
